import request from '@/utils/request'

export  function addWallPaper(data){
  return request({
    url: '/wallpaper/add',
    method: 'post',
    data
  })
}


export  function deleteWallPaper(id){
  return request({
    url: `/wallpaper/delete?id=${id}`,
    method: 'delete'
  })
}

export  function listWallPaper(pageSize,currentPage,classid){
  return request({
    url: `/wallpaper/list/page?pageSize=${pageSize}&currentPage=${currentPage}&classid=${classid}`,
    method: 'get'
  })
}

export  function editWallPaper(data){
  return request({
    url: '/wallpaper/edit',
    method: 'post',
    data
  })
}
export  function getWallPaperById(id){
  return request({
    url: `/wallpaper/get?id=${id}`,
    method: 'get'
  })
}
